package com.byx.chatclient.bean;

import android.graphics.Bitmap;

/**
 * PersonInfoItem
 * 个人信息项
 * @author Superb
 * @date 2021/4/27 10:11
 */
public class PersonInfoItem {
    private String itemName;
    private boolean canModify;

    public PersonInfoItem() {
    }

    public PersonInfoItem(String itemName) {
        this.itemName = itemName;
        this.canModify = true;
    }

    public PersonInfoItem(String itemName, boolean canModify) {
        this.itemName = itemName;
        this.canModify = canModify;
    }

    public String getItemName() {
        return itemName;
    }

    public void setItemName(String itemName) {
        this.itemName = itemName;
    }

    public boolean isCanModify() {
        return canModify;
    }

    /**
     * 文本信息项
     */
    public static class TextPersonInfoItem extends PersonInfoItem {
        private String itemContent;

        public TextPersonInfoItem(String itemName, String itemContent) {
            super(itemName);
            this.itemContent = itemContent;
        }

        public TextPersonInfoItem(String itemName, String itemContent, boolean canModify) {
            super(itemName, canModify);
            this.itemContent = itemContent;
        }

        public String getItemContent() {
            return itemContent;
        }

        public void setItemContent(String itemContent) {
            this.itemContent = itemContent;
        }
    }

    /**
     * 图片信息项
     */
    public static class ImagePersonInfoItem extends PersonInfoItem {
        private String avatar;

        public ImagePersonInfoItem(String itemName, String avatar) {
            super(itemName);
            this.avatar = avatar;
        }

        public ImagePersonInfoItem(String itemName, String avatar, boolean canModify) {
            super(itemName, canModify);
            this.avatar = avatar;
        }

        public String getAvatar() {
            return avatar;
        }

        public void setAvatar(String avatar) {
            this.avatar = avatar;
        }
    }
}
